package com.example.qqfake;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

public class Recycler_item_right extends RecyclerView.ViewHolder {
    ImageView image;
    TextView content;

    public TextView getContent() {
        return content;
    }

    public ImageView getImage() {
        return image;
    }

    public Recycler_item_right(@NonNull View itemView) {
        super(itemView);
        this.image = itemView.findViewById(R.id.imageView1);
        this.content = itemView.findViewById(R.id.textView1);
    }
    public void bindData(Chat_content item) {
        image.setImageResource(item.getImageid());
        content.setText(item.getContent());
    }
}
